package com.example.onlinemusicserver.service;

import com.example.onlinemusicserver.mapper.MusicMapper;
import com.example.onlinemusicserver.model.Music;
import com.example.onlinemusicserver.tools.ResponseBodyMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MusicService {
    @Autowired
    private MusicMapper musicMapper;

    public int insert(String title,String singer,String time,String url,int userid){
        return musicMapper.insert(title,singer,time,url,userid);
    }

    public Music selectByTAndSinger(String title, String singer){
        return musicMapper.selectByTAndSinger(title, singer);
    }

}
